package com.hanZhe.service.Impl;

import com.hanZhe.bean.Users;
import com.hanZhe.mapper.UsersMapper;
import com.hanZhe.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Created by shw on 2018/1/5.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    @Override
    public Users selectByUser(Users users) {
        System.out.println("service层数据----"+users);
        return usersMapper.selectByUser(users);
    }
}